package org.linlinjava.litemall.db.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.linlinjava.litemall.db.handler.ListIntegerTypeHandler;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @auth :ply
 * @date 2024/5/14 14:22
 * @Description TODO
 * 配方表
 */
@Data
@TableName(value = "lumiere_cart_package",autoResultMap = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class LumiereCartPackage {

    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer number;

    private BigDecimal price;

    private Integer packageId;

    @TableField(typeHandler = ListIntegerTypeHandler.class)
    private List<Integer> cartGoodsIds;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT) //插入时自动填充
    private LocalDateTime addTime;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.UPDATE) // 插入 和 更新时 自动填充
    private LocalDateTime updateTime;

    /**
     * 是否删除(0否 1是)
     */
    private Boolean deleted;


}
